#!/usr/bin/env python
# -*- coding: utf-8 -*-

from flask import Flask, Blueprint

# 创建API蓝图
api_bp = Blueprint('api', __name__, url_prefix='/api/v1')

def register_blueprints(app: Flask):
    """注册所有API蓝图
    
    Args:
        app: Flask应用实例
    """
    # 导入和注册各个模块的路由
    from .routes.user_routes import user_bp
    from .routes.auth_routes import auth_bp
    
    # 注册子蓝图
    api_bp.register_blueprint(user_bp)
    api_bp.register_blueprint(auth_bp)
    
    # 注册主API蓝图
    app.register_blueprint(api_bp)

if __name__ == '__main__':
    pass
